import java.util.Scanner;

public class program21{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("Enter investment amount: ");
        double amount = in.nextDouble();
        System.out.print("Enter annual interest rate in percentage: ");
        double annual = in.nextDouble();
        System.out.print("Enter number of years: ");
        int years = in.nextInt();
        double monthly = annual / 12 / 100;
        double fv = amount * Math.pow(1 + monthly, years * 12);
        System.out.printf("Accumulated value is $%.2f%n", fv);
    }
}
